﻿<html>
<head>
<script type="text/javascript">

    function say() {
        var a = window.event;
        a.butto = 100;
        var b = 0;
    }

    function callParent() {
        parent.say();
        parent.window.document.getElementsByName("myFrame")[0].style.height = "100px";

    }
</script>
</head>
<body>
<input id="button" type="button" value="调用parent.html中的say()函数" onclick="callParent()">
<div>sdfas</div>
</body>
</html>